package com.candy.bean;

/**
 * @author donglin
 * @Title:
 * @类名: Person
 * @date 2020/5/20
 */
public class Person extends Student {
    public void saySorry(){
        this.setStuName("小红");
        System.out.println("对不起");
    }

    @Override
    public void sayHello() {
        //调用父类的sayHello方法
        super.sayHello();
        System.out.println("我是子类的sayHello呀");

    }
}
